b80240
@@ -697,7 +697,6 @@
public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
     }
 
     public synchronized void removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception {
-        this.routeDefinitions.removeAll(routeDefinitions);
         for (RouteDefinition routeDefinition : routeDefinitions) {
             removeRouteDefinition(routeDefinition);
         }
@@ -707,6 +706,7 @@
public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
         String id = routeDefinition.idOrCreate(nodeIdFactory);
         stopRoute(id);
         removeRoute(id);
+        this.routeDefinitions.remove(routeDefinition);
     }
 
     public ServiceStatus getRouteStatus(String key) {
